/***************************************************************
 * Name:      Cccc.h
 * Purpose:   Code::Blocks Valgrind plugin: main functions
 * Author:    Lieven de Cock (aka killerbot)
 * Created:   12/11/2009
 * Copyright: (c) Lieven de Cock (aka killerbot)
 * License:   GPL
 **************************************************************/

#ifndef CCCC_H_INCLUDED
#define CCCC_H_INCLUDED
// the base class we 're inheriting
//我们继承的基类
#include "cbplugin.h"

class TextCtrlLogger;

class Cccc : public cbToolPlugin
{
public:
    Cccc();
    ~Cccc();
    // fires when the plugin is attached to the application
    // 当插件附加到应用程序时激发
    void OnAttach();
    // fires when the plugin is released from the application
    // 从应用程序中释放插件时激发
    void OnRelease(bool appShutDown);
    int Execute();
private:
    void AppendToLog(const wxString& Text);
    //!< log tab in the message pane
    //!< "消息"面板中的"日志"选项卡
    TextCtrlLogger* m_CcccLog;
    //!< index of our log tab (can this change during run time ??)
    //!< 日志选项卡的索引(在运行时是否可以更改??)
    int             m_LogPageIndex;
    //!< The path to the application (provided by the user on request)
    //!< 应用程序的路径(由用户根据请求提供)
    wxString        m_CcccApp;
};

#endif // CCCC_H_INCLUDED
